package com.koron.css2.systemManage.service;

import com.github.pagehelper.PageInfo;
import com.koron.common.bean.query.OperationQueryBean;
import com.koron.css2.serviceManage.bean.UserInfoBean;
import com.koron.css2.systemManage.bean.OperateBean;
import com.koron.css2.systemManage.bean.OperationTreeBean;

import java.util.List;


public interface IOperationService {
	 
	void addOperation(OperateBean operation);
	
	void addOrgOperation(String app, String orgCode, List<String> operationCodes);

	void addOrgOperation(String app, List<String> orgCodeList, List<String> operationCodeList);
	
	void updateOperation(OperateBean operation);
	
	void deleteOperation(List<String> opCodeList);
	
	void addRoleOperation(String roleCode, List<String> opCodeList);
	
	List<OperateBean> getUserOPList(String _userCode);
	
	void deleteRoleOP(String roleCode, List<String> opCodeList);
	
	PageInfo<OperationTreeBean> listAllOperation(OperationQueryBean query);
	
	List<OperationTreeBean> listOPByOrg(String app, String orgCode);
	
	List<OperationTreeBean> listOPByOrg(String app,UserInfoBean userInfo, String orgCode, boolean checked);
	
	List<OperationTreeBean> listOPByRole(String app, UserInfoBean userInfo, String roleCode, boolean checked);

}
